<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>index.jsp</title>
</head>
<body>

    <a href="hello">Hello</a>

    <hr/>
    <h1>请求参数</h1>

    <%--<a href="testParams?name=lucy&age=20">简单参数</a>--%>

    <a href="testParams?username=jack&age=21">简单参数</a>
    <br/>

    <%-- springmvc默认能够识别的时间格式为 yyyy/MM/dd --%>
    <%--<a href="testPojo?username=lucy&age=20&birth=2000/12/12">实体参数</a>--%>
    <br/>
    <a href="testPojo?username=jack&age=21&birth=2000-12-12">实体参数[时间格式为 yyyy-MM-dd ]</a>
    <br/>

    <a href="testMap?username=jack&age=21">map参数</a>
    <br/>

    <a href="testArray?hobbies=java&hobbies=html&hobbies=python">数组参数一</a>
    <a href="testArray?hobbies=java,test,python">数组参数二</a>
    <br/><br/>

    <form action="testCollection" method="get">
        list:<input name="names[0]" /><input name="names[1]" /><br/>
        users:<input name="users[0].username" /><input name="users[0].age" /><br/>
        map:<input name="maps['aa']"/><input name="maps['bb']"/><br/>
        <input type="submit" value="提交"/>
    </form>



</body>
</html>
